import { RouteRecordRaw } from 'vue-router'

export interface MenuState {
   menuList: {
      list: Array<RouteRecordRaw>
      count: Number
   },
   activedMenuList: Array<ActivedTabItem>,
   currentActivedMenuItem: string,
   menuCollapsed:boolean
}

export type ActivedTabItem = {
   path: string,
   name: string
}

//MenuItemRes 中多余的属性
//export type NotNeedKeysOfMenuListRes = 'createBy' | 'createTime' | 'remark' | 'updateBy' | 'updateTime'

//使用重映射定义去除多余菜单项属性的路由项
//export type RouteItem = { [P in keyof MenuItemRes as P extends NotNeedKeysOfMenuListRes ? never : P]: MenuItemRes[P] }
